package com.boarsoft.boar.sys.entity;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@SuppressWarnings("serial")
public class SysRole implements java.io.Serializable {
	public static final short STATUS_NOUSE = 0;
	public static final short STATUS_INUSE = 1;

	/** 需求调研员 */
	public static final String DEMAND_INVESTIGATOR = "DI";
	/** 系统分析员 */
	public static final String SYSTEM_ANALYST = "SA";
	/** 开发工程师 */
	public static final String PROGRAME_DEVELOPER = "PD";
	/** 测试工程师 */
	public static final String TEST_ENGINER = "TE";
	/** 配置管理员 */
	public static final String CONFIG_MANAGER = "CM";
	/** 项目经理 */
	public static final String PROJECT_MANAGER = "PM";
	
	/**
	 * 默认的roleId值
	 */
	public static final String ADMIN_ID = "00000000000000000000000000000000";

	private String id;
	private String code;//
	private String corpId;
	private String name;// 角色名称',
	private short status;// 0未启用，1启用',
	private String memo;//
	private Set<SysFunc> funcs = new HashSet<SysFunc>();
	private List<SysUser> users = new ArrayList<SysUser>();

	public SysRole() {
	}

	public SysRole(String id, String code, String name, short status, String memo) {
		this.id = id;
		this.code = code;
		this.name = name;
		this.status = status;
		this.memo = memo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCorpId() {
		return corpId;
	}

	public void setCorpId(String corpId) {
		this.corpId = corpId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Set<SysFunc> getFuncs() {
		return funcs;
	}

	public void setFuncs(Set<SysFunc> funcs) {
		this.funcs = funcs;
	}

	public List<SysUser> getUsers() {
		return users;
	}

	public void setUsers(List<SysUser> users) {
		this.users = users;
	}
}